//通知请求模块
import request from "../utils/request";
export const getEventsChannels=(data)=>{
    return request({
        method:"GET",
        url:"/front/events/list",
        params:data
    })
}
export const getEventById=(eventId)=>{
    return request({
        method:"GET",
        url:"/front/events/getById",
        params:{
            id:eventId
        }
    })
}

export const getMyEvents=(data)=>{
    return request({
        method:"GET",
        url:"/front/events/mylist",
        params:data
    })
}
export const isEventApi=(eventId)=>{
    return request({
        method:"GET",
        url:"/front/events/isEvent",
        params:{
            eventId:eventId
        }
    })
}

export const myPart=(data)=>{
    return request({
        method:"GET",
        url:"/front/events/mypart",
        params:data
    })
}
export const takePartEvent=(id)=>{
    return request({
        method:"post",
        url:"/front/events/takepart",
        params:{
            id:id
        }
    })
}

export const quitEvent=(id)=>{
    return request({
        method:"post",
        url:"/front/events/quit",
        params:{
            id:id
        }
    })
}





